home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Carousel Volume 2 #1
/
carousel.iso
/
mactosh
/
util
/
simulare.sit
/
Simula 4.07 Reference
/
card_36125.txt
< prev
next >
Wrap
Text File
|
1989-05-02
|
3KB
|
138 lines
-- card: 36125 from stack: in.07 Reference
-- bmap block id: 0
-- flags: 0000
-- background id: 13647
-- name:
-- part 1 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=392 top=55 right=157 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 2 (field)
-- low flags: 00
-- high flags: 0002
-- rect: left=277 top=156 right=251 bottom=494
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name:
-- part 3 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=19 top=228 right=252 bottom=128
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: See also "this"
----- HyperTalk script -----
on mouseUp
go to card id 36462
end mouseUp
-- part 4 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=20 top=256 right=279 bottom=123
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: and "inspect"
----- HyperTalk script -----
on mouseUp
go to card id 46071
end mouseUp
-- part 5 (button)
-- low flags: 00
-- high flags: A004
-- rect: left=20 top=281 right=304 bottom=193
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: and attribute protection
----- HyperTalk script -----
on mouseUp
go to card id 34931
end mouseUp
-- part contents for background part 1
----- text -----
The attributes of an object are accessible through dot notation.
The attributes defined in the qualifying class of the pointer
are directly visible.
Attributes defined in subclasses can be
accessed after re-qualification with a "qua".
"Qua" can also be used to access attributes in
a prefix-class that has been overridden with
new attributes with the same name.
-- part contents for background part 2
----- text -----
Class attribute access
-- part contents for card part 1
----- text -----
infile class myfile;
begin
procedure InImage;
.....;
end;
ref(infile) i;
ref(myfile) m;
-- part contents for card part 2
----- text -----
i:-new myfile("filename");
m:-i; ! - both i and m point to the same object;
i.inimage; ! -- will call inimage of infile ;
m.inimage; ! -- will call InImage of myfile;
i qua myfile.inimage; ! InImage of myfile ;
m qua infile.inimage; ! inimage of infile ;